* {
    margin: 0;
    padding: 0;
    font-family: "Source Code Pro";
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #bea2e7 0%, #86b7e7 100%);
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}
.container .card {
    background: #fff;
    width: 430px;
    display: flex;
    pointer-events: none;
    align-items: center;
    position: absolute;
    padding: 20px;
    justify-content: space-between;
    border-radius: 100px 20px 20px 100px;
    animation: animate 15s linear infinite;
    animation-delay: calc(3s * var(--delay));
}

.container:hover .card {
    animation-play-state: paused;
}

/* .card:last-child {
    animation-delay: calc(-3s * var(--delay));
} */

@keyframes animate {
    0%, 15% {
        opacity: 0;
        transform: translateY(100%) scale(0.5);
    }
    20%, 30% {
        opacity: 0.5;
        transform: translateY(100%) scale(0.7);
    }
    40%, 60% {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0%) scale(1);
    }
    70%, 80% {
        opacity: 0.4;
        transform: translateY(-100%) scale(0.7);
    }
    85%, 100%{
        opacity: 0;
        transform: translateY(-100%) scale(0.5);
    }
}

.card .body {
    display: flex;
    align-items: center;
}

.card .body .info {
    margin-left: 80px;
}

.info h2 {
    padding-bottom: 10px;
    color: #86b7e7;
}

.info p {
    font-weight: 600;
    font-size: 14px;
    color: #999;
}

.card .img {
    width: 90px;
    height: 90px;
    position: absolute;
    left: -6px;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.card .img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.card .btn {
    display: block;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(to bottom, #bea2e7 0%, #86b7e7 100%);
    padding: 6px 20px;
    border-radius: 100px;
    cursor: pointer;
}
